package com.lh0811.forge.pserv.basic.api.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 系统-系统字典表
 *
 * @author lh0811
 * @email lh0811
 * @date 2024-04-23 09:46:46
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class CommDictCreateParam implements Serializable {

    @NotNull(message = "字典类型不为空")
    @Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long typeId;

    @NotBlank(message = "字典键不为空")
    @Schema(description = "字典键", requiredMode = Schema.RequiredMode.REQUIRED)
    private String dictKey;

    @NotBlank(message = "字典值不为空")
    @Schema(description = "字典值", requiredMode = Schema.RequiredMode.REQUIRED)
    private String dictValue;

}
